﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 
  </head>
  <body>
  <!--   <script languate="javascript"> 
        		var userpwd;
				var username;
				var tiaozhuan;
    			window.onload=denglu;
				
				function denglu(){
					username=document.getElementById('usernamexianshi').value;
					userpwd=document.getElementById('userpwdxianshi').value;
					//tiaozhuan="http://192.168.2.100:8001/archibus/schema/ab-core/views/ab-login.jsp?name="+username+"&pwd="+userpwd; 
					tiaozhuan="http://192.168.2.100:8001/archibus/login.axvw?name="+username+"&pwd="+userpwd; 
					document.getElementById('tiaozhuanchenggong').src=tiaozhuan;
				}
				
				
                function reinitIframe() {                     
 					try 
					{                          
						var bHeight = frame.contentWindow.document.body.scrollHeight;                
                                     
           				frame.height = bHeight;                      
					} 
        			catch (ex) { }                 
				}
        </script> 
   
<iframe marginwidth="0" src="" marginheight="0" height="100%" width="100%" name="i" id="tiaozhuanchenggong" frameborder="0" scrolling="no" onload="reinitIframe()" >
	</iframe>
<input type="hidden" id="usernamexianshi"  value="${afmuser.userName}"/>
<input type="hidden" id="userpwdxianshi"  value="${afmuser.userPwd}"/> -->
   
   <script languate="javascript"> 
window.onload=denglu2;
function denglu2(){
   		document.getElementById('usernamedenglu').value=parent.document.getElementById("usernamexianshi").value;
   		document.getElementById('userpwddenglu').value=parent.document.getElementById("userpwdxianshi").value;
		document.getElementById('xiangmudenglu').value=parent.document.getElementById("xiangmu").value;
   		parent.document.getElementById("panduan").value="1";
		document.form1.submit();

}

   </script> 
   
   
   <form action="login.action" method="post" name="form1">
		<input type="hidden" name="user.userName" id="usernamedenglu"><br>
		<input type="hidden" name="user.userPwd" id="userpwddenglu"><br>
		<input type="hidden" name="luser.xiangMu" id="xiangmudenglu"><br>
	</form>
	</form>
   
  </body>  
   
   
   
</html>
